﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAL
{
    
    public class TypeOfHousesDataModel
    {
        HomestayWebDBEntities ent=new HomestayWebDBEntities();
        public List<TypeOfHous> GetTypeofHouse()
        {
            List<TypeOfHous> list=new List<TypeOfHous>();
            var query = from th in ent.TypeOfHouses
                        select th;
           if(query!=null)
           {
               list = query.ToList();
           }
            return list;
        }
    }
}
